package com.demo.entity.vo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 只有一个id的单参数请求对象
 */
@Data
public class IdRequest {

    @NotNull(message = "id不能为空")
    @Min(1)
    private Integer id;
}
